<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Đặng Khánh Trung
 * Date: 10/26/12
 * Time: 11:03 PM
 * To change this template use File | Settings | File Templates.
 */

//no direct access
defined('_JEXEC') or die;

// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_vast')) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}

jimport('joomla.application.component.controller');

JLoader::register('VastHelper', JPATH_COMPONENT . '/helpers/vhelper.php');
JLoader::register('JVastLog', JPATH_COMPONENT . '/helpers/jvastlog.php');

$controller = JController::getInstance('vast');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
